import tkinter
import final
import 马里奥
import tankgame
import cfg


root = tkinter.Tk()
root.title("游戏选择器")
root.geometry("400x200")
label = tkinter.Label(root, text="选择要运行的游戏").place(x=150,y=10)
def game1():
    print("run")
    manager = final.Manager()
    manager.main()


def game2():
    马里奥.mainGame()

def game3():
    tankgame.main(cfg)

button1 = tkinter.Button(root, text="飞机大战", command=game1).place(x=170,y=50)
button2 = tkinter.Button(root, text="马里奥 ", command=game2).place(x=175,y=90)
button3 = tkinter.Button(root, text="坦克大战", command=game3).place(x=170,y=130)
root.mainloop()


